<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>if分支语句的语法</title>
		<script>
			/* 
			能够被4整除，且不能整除100的是闰年。或者是能够被400整除的就是闰年 
			 */
			
			var num=10;
			if (num > 1) {
				console.log("num的值大于1");
			} else if (num < 1) {
				console.log("num的值小于1");
			} else if (num == 1) {
				console.log("num的值等于1");
			} else {
				console.log("判断失败");
			}
			
			
		</script>
	</head>
	<body>
	</body>
</html>